<!DOCTYPE html>
<html style="font-size: 50px;">
<head>
<#include "include/head.html"/>
</head>
<body class="has-hover">
<div class="container bg-gray mobile-bg-white hold-top-g">

<#include "include/top.html"/>
    <div class="content useredittabs">
        <div class="c-left-nav">
            <div class="panel">
                <div class="title2 text-t1-1">
                    编辑个人信息
                </div>
                <div class="tab-v text-t3-2 selected" id="jj" onclick="$('#j').show();$('#x').hide();$('#jj').addClass('selected');$('#xx').removeClass('selected')"><span
                        href="#">基础信息 </span></div>
                <div class="tab-v text-t3-2" id="xx" onclick="$('#x').show();$('#j').hide();$('#xx').addClass('selected');$('#jj').removeClass('selected')"><span href="#">修改密码</span>
                </div>
            </div>
        </div>
        <div class="c-right-content">
            <form action="/member/update" method="post" enctype="multipart/form-data">
                <div class="panel panel-content" id="j">


                    <div class="title text-t1-1">基础信息</div>
                    <div class="input-form2">
                        <div class="input-group">
                            <div class="avatar-h text-t3-2">当前头像</div>
                            <img src="${user.img!}" class="avatar-c">
                            <div class="avatar-b text-t3-1">你可以上传JPG、GIF或PNG格式的文件, 文件大小不能超过2M。</div>
                        </div>
                        <div class="input-group">
                            <input type="file" name="image"></div>
                    </div>
                    <div class="input-form">

                        <div class="input-group"><label class="lt">用户名</label>
                            <div class="rt"><input type="text" name="name" value="${user.name}">
                                <div class="error_text"></div>
                            </div>
                        </div>
                        <div class="input-group"><label class="lt">邮箱</label>
                            <div class="rt"><input type="text" name="email" value="${user.email}">
                                <div class="error_text"></div>
                            </div>
                        </div>

                        <div class="input-group">
                            <div class="lt"></div>
                            <div class="rt">
                                <button type="submit" class="default-btn save-btn" style="padding: 6px">保存</button>
                            </div>
                        </div>
                    </div>


                </div>
            </form>
            <form action="/member/modfy" method="post">
                <div class="panel panel-content" id="x" style="display: none;">
                    <div class="title text-t1-1">修改密码</div>


                    <div class="input-form">
                        <div class="input-group"><label class="lt">原密码</label>
                            <div class="rt"><input type="password" name="password">
                                <div class="error_text"></div>
                            </div>
                        </div>
                        <div class="input-group"><label class="lt">新密码</label>
                            <div class="rt"><input type="password" name="newpassword">
                                <div class="error_text"></div>
                            </div>
                        </div>
                        <div class="input-group"><label class="lt">新密码</label>
                            <div class="rt"><input type="password" name="repassword">
                                <div class="error_text"></div>
                            </div>
                        </div>
                        <div class="input-group">
                            <div class="lt"></div>
                            <div class="rt">
                                <button type="submit" class="default-btn save-btn">保存</button>
                            </div>
                        </div>
                    </div>

                </div>
            </form>
        </div>
    </div>
</div>
</body>
</html>